import request from "../commonUtils";

/**
 * 用户判定指纹真假
 * @param {*} data
 * @returns
 */
export const checkFingerTruth = (data) => {
  return request({
    url: "/api/fin",
    method: "post",
    data: data,
  });
};
/**
 * 用户加密指纹
 * @param {*} data
 * @returns
 */
export const signFingerTruth = (data) => {
  return request({
    url: "/api/sign",
    method: "post",
    data: data,
  });
};
/**
 *  用户和专家查询鉴定记录
 * @param {*} data
 * @returns
 */
export const queryIdentRecordByUser = (data) => {
  return request({
    url: "/api/record",
    method: "get",
    data: data,
  });
};
/**
 * 管理员查询鉴定记录
 * @param {*} data
 * @returns
 */
export const queryIdentRecordByAdmin = (data) => {
  return request({
    url: "/api/queryRecord",
    method: "get",
    data: data,
  });
};
/**
 * 专家修改评论信息
 * @param {*} data
 * @returns
 */
export const editIdentRecordByExpert = (data) => {
  return request({
    url: "/api/comment",
    method: "get",
    data: data,
  });
};
/**
 * 专家删除鉴定记录
 * @param {*} data
 * @returns
 */
export const deleteIdentRecordByExpert = (data) => {
  return request({
    url: "/api/delete",
    method: "get",
    data: data,
  });
};
/**
 * 管理员添加专家账号
 * @param {*} data
 * @returns
 */
export const addCustomUserByAdmin = (data) => {
  return request({
    url: "/api/newRole",
    method: "post",
    data: data,
  });
};
/**
 * 普通用户加急判定指纹真假
 * @param {*} data
 * @returns
 */
export const judgeFin = (data) => {
  return request({
    url: "/api/urgentfin",
    method: "post",
    data: data,
  });
};
/**
 * 普通用户加急判定笔迹相似度
 * @param {*} data
 * @returns
 */
export const judgeSign = (data) => {
  return request({
    url: "/api/urgentsign",
    method: "post",
    data: data,
  });
};
/**
 * 未读消息
 * @param {*} data
 * @returns
 */
export const noReadMessage = (data) => {
  return request({
    url: "/api/inform",
    method: "get",
    data: data,
  });
};
